package com.ego.client;

import com.ego.pojo.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.net.CacheRequest;
import java.util.List;

@FeignClient("ItemService")
@RequestMapping("/category")
public interface CategoryFeignClient {

    @GetMapping("/list/ids")
    public ResponseEntity<List<Category>> selectByIds(@RequestParam("ids") List<Long> idList);
}
